package com.ys.entity.block.btc;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ys.entity.block.Block;
import lombok.Data;

import java.util.List;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class BtcBlockEntity extends Block {

    /**
     * amount : 0.89299681
     * blockhash : 000000000001622f9e5b5569661559da08c6aaecd55116425231536bf0e5b797
     * walletconflicts : []
     * timereceived : 1522727760
     * blocktime : 1522726903
     * bip125-replaceable : no
     * txid : cdd88b092e22acfb96cc2a0c1e96a2e2f01ad41a7d58cefa79a25e57a49ebbd7
     * details : [{"amount":0.89299681,"address":"2Myfe6U8w7zDaz3XsFjLLZKxjbJpWrE77jJ","label":"2Myfe6U8w7zDaz3XsFjLLZKxjbJpWrE77jJ","category":"receive","account":"2Myfe6U8w7zDaz3XsFjLLZKxjbJpWrE77jJ","vout":0}]
     * hex : 020000000173e7d95aea0e8485afd0fc7127c328a382cdcc76d33c232afe3f7d0146c6e7c7010000006a47304402203194d1b2d2ee084ac0ead4694b76596d0b815988dedfe9d140666b5b84ed2b5f022026da8b8816d1d07c50f772bcc81b380dc953a5d1f480f4ae5818aa058a738553012103174c733305d98842ae7a1e957f7e4758692faeedc518b1dfb7b1ceb702474d06feffffff02e19a52050000000017a914466edc69d4086d47d38829499c4a74b007dc1e2487a66066b1720000001976a914bb0efb410c557b1c4db3fb1d360aba1654b33bdb88ac61af1300
     * time : 1522726903
     * confirmations : 304
     * blockindex : 4
     */
    private double amount;
    private String blockhash;
    private List<?> walletconflicts;
    private int timereceived;
    private int blocktime;
    /**
     * tx : ["d43a41640021542aa2186d910b68768b42c5476b75b531bd50fee90d9f5e9432","493b507f63b70454fc4e008d2f6956fdc7aff8057fee7bdafde99119fecc33b3","ea6360b119fcdaf37cd1051083266fd6c28cca97b628546e73d7fd0fd1f0a823","c7e7c646017d3ffe2a233cd376cccd82a328c32771fcd0af85840eea5ad9e773","cdd88b092e22acfb96cc2a0c1e96a2e2f01ad41a7d58cefa79a25e57a49ebbd7","7db80b90d3179d9fdafbd5148c3d56699769918023d23a8442829dffd49bfcd5","80d6e5693e6fefb92cf55b126fa765e8a5c4fffc4bd267f2c5076387a6d37a73","727b25533166d16c339e159d3fe4a068ff07dcd8da7f64bcac2c727f8ed83752","f90c3850761fe3d83cabdb61b10dbb1048499d2f0100546aab4ea069435ab3e4","92d1055de384dff7a73ef37feeede0cff6d8d9f7e828c36195c9fc670d1a64d7","8057b0a6a911034b336ed410877def009b4f6e9ddfa09131f322c43a8d7d4885","8f7dd7223754bd697cccc664d79e324d8f2f4d0f675c70d2c9662c812494ef4b","49250ef4a3566923b5fa54132c3537fc4d3b482bbf71a598caef34d5b2387425","7fcf3e1a83736fa28ca2c3e88d37c2c54217887ee6e358485c0df89ea9e193c8","108e8d90dd1e120ce198571a89a769f795f5310a9745be08185a13bd6cac94c3","727a50e4c968aa4526faeb682aa731d772018c7ffd9d07c72ccdc05a846d0a62","5744a33ec79103350335eeda458c236410ec1de7959c749ecbd635a40ac06f97","20de87a04e0f4415bacaf20df709c644d593507e7e5155f76de14702f5be4c59","4d170783c70873c6aa8655e562eaa2edf96bb7f9ee962f07e76c4e2c2b517e31","6960e91e520d224daca744dc385832128b22458d2e3c8f6ed4151e3cc68d2fe2","9e49390adf7c974638f81f9f9dc0b8de8ac0be10c5c01c9611e4f72c2535c8bb","babc5fa8c8c31f6b9cbb3638b6833923230a717d6481f89187a0e181f85ba5d9","1da493abb4fba2ee69ae4d09241ea3f38c8ee24ccff618da19416034dc467864","015c6529edf19f4490e562a6dea48693e4ef30e8ed6005067c86337b5f93f410","aaaa5bbc11541e3497ac1a1f70de8f59d59747565cbaf0a983b67436449f4416","5058b35462c5f9bcb0210f0b5c48a05e14486e1a0e0427da6484bb56edf09634","a3103faf8dca7a8ef24595a736b7f1152c0080d139cdd999e409ad4563efd0a0","248227967c9b95443b0531699532abac3bfd5d96f59c937605c5f04e45465a2c","4cfee7961ad2596593e265c29c9421df0acce1869cd383daae66b27524e72aa5","aa9008952adc19382499cb232ef735f9df1387e3d7c1862ebea55bbb38c6b3ba","482a23766f1eedf5e98f79137f51ec2e67658307d773c0b6215995b2c62bdce4","b17309dbd9f4aa440fafce282a805d6519261db0a63bd97080e8963b5a42d8ea","42f5b4383abe8dcd1d9b20043bd2793060693d2531c51b014c8761e8f0b8eae1","8e895ca0ef3d95fcddbc5968b74bd0ae00fcecad87a1869bf4512303502bf613","2cd39cec8d4f7421a2c4aa0c69a22f10ed8c13ec847d110c80e08756746eb79a","1c364be61ad469b3bc1322c4eb23832392b98897ad05e4a5df4092e5793aa5d2","7930685bde0b350339e07141c1defd579fa66463ec8b9094f67ebfb230a21ebd","eebf9558d662e39bb68832b8b08266ffeb76543de5d2f58a24ce9726a6061017","21b25668dabfa764bd22c3d7e4d1235501ba68e89a01517db9fa52798c73aaa2","4fdd8a44f867d6bd8719ea064b71231fd26b6af65bfe876086f143e12dca77f5","441b8a8dc94e554fafbdb29b6205efaeff89d0d0c3de6f81d4cf1755621afb27","82d549b9cfb695ab0013f0ca02063f376af37afd3f7bea1721c17e0f8a64b985","b6b1ea36a4b8632bb1a5a81d044f7b8fc37d3ce71d6fd50883d385dc6ea7e401","3e41d9edb9ad18527296448ce0bec89ba8f2fa031bcc9b31b474fdce1e7a884e","5666b50a6ba1aaf9ab9f88035b5f01748715f8e37f14e2e48b0b4453cbe23ad0","f0888e37d9027b329c4ad9b52a279648b17111f226f8eaaefa1ce9395c267d47","1cbe7480c8002077534f93257a5080eabf1fcce7cfa609ebf46596f6fbb4f8c3","76d1fbbc2216ff29a528a88d58474400fb029a5472e69accdfaefa1edba394fe","6d94562cb4be7530fc449bbe6a2d4f6430caf29843ec98175dced8117d2fd8ed","7d5e10c8158feafe268f13b70e721306d12892effca88a403873cfc2d1277378","fb22fd0b79e3c0ff8217006ebfa38717bc66f57ee3a9d3dfc64f549dd87b2c67","8c72483f4e0099a6de9feb8330ceacc9f1baef4201e772912857a7c4592ef9a6","3efe1500a25f39952a10af5e32e734fc4fa69fa8f7c8467c6860d8a5b8e1659c","2f3836af406dd038bfb2c631ac29f2f732e6e5c8421e85abd06b87771dd3c214","f969c7b89ce3593dd7d43ffb28777c1d9e33e0d57e25a4b2f3828259870f8115","98c4fd08723b4aa4bd67f3ee5c5456f4c1ee68e4542fc16d2981a711624eaf28","4644af130196a5dcd6432bee777df639d4e6cc5434937a528cd401206e0ead34","f88fad2ca6d81a9b7df7eba934740fc213172917b96230dea40af64737229f95","512f3c72f90a0df509890904d7d4d6a289e1189718790e743c3e57c162c8ecd7"]
     * mediantime : 1522723321
     * previousblockhash : 000000000000033eec293881db03baed2742243ea52ec04466983061af4e622f
     * bits : 1d00ffff
     * weight : 115244
     * versionHex : 20000000
     * confirmations : 304
     * version : 536870912
     * nonce : 853759705
     * nextblockhash : 0000000015d462f7980d41f917ca04c7b673250ebf9088028a9b152da8133825
     * difficulty : 1
     * chainwork : 000000000000000000000000000000000000000000000038a0a7fd0ac50337bf
     * chainwork : 000000000000000000000000000000000000000000000038a0a7fd0ac50337bf
     * size : 28811
     * merkleroot : 0c0f56bc06265187b84e133269659fd2ef41f4f850cab949615b46ead8a3a5ff
     * strippedsize : 28811
     * time : 1522726903
     * hash : 000000000001622f9e5b5569661559da08c6aaecd55116425231536bf0e5b797
     * height : 1290082
     */
    private List<String> tx;
    private int mediantime;
    private String previousblockhash;
    private String bits;
    private int weight;
    private String versionHex;
    private int confirmations;
    private int version;
    private int nonce;
    private String nextblockhash;
    private int difficulty;
    private String chainwork;
    private int size;
    private String merkleroot;
    private int strippedsize;
    private int time;
    private String hash;
    private int height;
/*

    {
        "hash": "000000000001622f9e5b5569661559da08c6aaecd55116425231536bf0e5b797",
            "confirmations": 304,
            "strippedsize": 28811,
            "size": 28811,
            "weight": 115244,
            "height": 1290082,
            "version": 536870912,
            "versionHex": "20000000",
            "merkleroot": "0c0f56bc06265187b84e133269659fd2ef41f4f850cab949615b46ead8a3a5ff",
            "tx": [
        "d43a41640021542aa2186d910b68768b42c5476b75b531bd50fee90d9f5e9432",
                "493b507f63b70454fc4e008d2f6956fdc7aff8057fee7bdafde99119fecc33b3",
                "ea6360b119fcdaf37cd1051083266fd6c28cca97b628546e73d7fd0fd1f0a823",
                "c7e7c646017d3ffe2a233cd376cccd82a328c32771fcd0af85840eea5ad9e773",
                "cdd88b092e22acfb96cc2a0c1e96a2e2f01ad41a7d58cefa79a25e57a49ebbd7",
                "7db80b90d3179d9fdafbd5148c3d56699769918023d23a8442829dffd49bfcd5",
                "80d6e5693e6fefb92cf55b126fa765e8a5c4fffc4bd267f2c5076387a6d37a73",
                "727b25533166d16c339e159d3fe4a068ff07dcd8da7f64bcac2c727f8ed83752",
                "f90c3850761fe3d83cabdb61b10dbb1048499d2f0100546aab4ea069435ab3e4",
                "92d1055de384dff7a73ef37feeede0cff6d8d9f7e828c36195c9fc670d1a64d7",
                "8057b0a6a911034b336ed410877def009b4f6e9ddfa09131f322c43a8d7d4885",
                "8f7dd7223754bd697cccc664d79e324d8f2f4d0f675c70d2c9662c812494ef4b",
                "49250ef4a3566923b5fa54132c3537fc4d3b482bbf71a598caef34d5b2387425",
                "7fcf3e1a83736fa28ca2c3e88d37c2c54217887ee6e358485c0df89ea9e193c8",
                "108e8d90dd1e120ce198571a89a769f795f5310a9745be08185a13bd6cac94c3",
                "727a50e4c968aa4526faeb682aa731d772018c7ffd9d07c72ccdc05a846d0a62",
                "5744a33ec79103350335eeda458c236410ec1de7959c749ecbd635a40ac06f97",
                "20de87a04e0f4415bacaf20df709c644d593507e7e5155f76de14702f5be4c59",
                "4d170783c70873c6aa8655e562eaa2edf96bb7f9ee962f07e76c4e2c2b517e31",
                "6960e91e520d224daca744dc385832128b22458d2e3c8f6ed4151e3cc68d2fe2",
                "9e49390adf7c974638f81f9f9dc0b8de8ac0be10c5c01c9611e4f72c2535c8bb",
                "babc5fa8c8c31f6b9cbb3638b6833923230a717d6481f89187a0e181f85ba5d9",
                "1da493abb4fba2ee69ae4d09241ea3f38c8ee24ccff618da19416034dc467864",
                "015c6529edf19f4490e562a6dea48693e4ef30e8ed6005067c86337b5f93f410",
                "aaaa5bbc11541e3497ac1a1f70de8f59d59747565cbaf0a983b67436449f4416",
                "5058b35462c5f9bcb0210f0b5c48a05e14486e1a0e0427da6484bb56edf09634",
                "a3103faf8dca7a8ef24595a736b7f1152c0080d139cdd999e409ad4563efd0a0",
                "248227967c9b95443b0531699532abac3bfd5d96f59c937605c5f04e45465a2c",
                "4cfee7961ad2596593e265c29c9421df0acce1869cd383daae66b27524e72aa5",
                "aa9008952adc19382499cb232ef735f9df1387e3d7c1862ebea55bbb38c6b3ba",
                "482a23766f1eedf5e98f79137f51ec2e67658307d773c0b6215995b2c62bdce4",
                "b17309dbd9f4aa440fafce282a805d6519261db0a63bd97080e8963b5a42d8ea",
                "42f5b4383abe8dcd1d9b20043bd2793060693d2531c51b014c8761e8f0b8eae1",
                "8e895ca0ef3d95fcddbc5968b74bd0ae00fcecad87a1869bf4512303502bf613",
                "2cd39cec8d4f7421a2c4aa0c69a22f10ed8c13ec847d110c80e08756746eb79a",
                "1c364be61ad469b3bc1322c4eb23832392b98897ad05e4a5df4092e5793aa5d2",
                "7930685bde0b350339e07141c1defd579fa66463ec8b9094f67ebfb230a21ebd",
                "eebf9558d662e39bb68832b8b08266ffeb76543de5d2f58a24ce9726a6061017",
                "21b25668dabfa764bd22c3d7e4d1235501ba68e89a01517db9fa52798c73aaa2",
                "4fdd8a44f867d6bd8719ea064b71231fd26b6af65bfe876086f143e12dca77f5",
                "441b8a8dc94e554fafbdb29b6205efaeff89d0d0c3de6f81d4cf1755621afb27",
                "82d549b9cfb695ab0013f0ca02063f376af37afd3f7bea1721c17e0f8a64b985",
                "b6b1ea36a4b8632bb1a5a81d044f7b8fc37d3ce71d6fd50883d385dc6ea7e401",
                "3e41d9edb9ad18527296448ce0bec89ba8f2fa031bcc9b31b474fdce1e7a884e",
                "5666b50a6ba1aaf9ab9f88035b5f01748715f8e37f14e2e48b0b4453cbe23ad0",
                "f0888e37d9027b329c4ad9b52a279648b17111f226f8eaaefa1ce9395c267d47",
                "1cbe7480c8002077534f93257a5080eabf1fcce7cfa609ebf46596f6fbb4f8c3",
                "76d1fbbc2216ff29a528a88d58474400fb029a5472e69accdfaefa1edba394fe",
                "6d94562cb4be7530fc449bbe6a2d4f6430caf29843ec98175dced8117d2fd8ed",
                "7d5e10c8158feafe268f13b70e721306d12892effca88a403873cfc2d1277378",
                "fb22fd0b79e3c0ff8217006ebfa38717bc66f57ee3a9d3dfc64f549dd87b2c67",
                "8c72483f4e0099a6de9feb8330ceacc9f1baef4201e772912857a7c4592ef9a6",
                "3efe1500a25f39952a10af5e32e734fc4fa69fa8f7c8467c6860d8a5b8e1659c",
                "2f3836af406dd038bfb2c631ac29f2f732e6e5c8421e85abd06b87771dd3c214",
                "f969c7b89ce3593dd7d43ffb28777c1d9e33e0d57e25a4b2f3828259870f8115",
                "98c4fd08723b4aa4bd67f3ee5c5456f4c1ee68e4542fc16d2981a711624eaf28",
                "4644af130196a5dcd6432bee777df639d4e6cc5434937a528cd401206e0ead34",
                "f88fad2ca6d81a9b7df7eba934740fc213172917b96230dea40af64737229f95",
                "512f3c72f90a0df509890904d7d4d6a289e1189718790e743c3e57c162c8ecd7"
  ],
        "time": 1522726903,
            "mediantime": 1522723321,
            "nonce": 853759705,
            "bits": "1d00ffff",
            "difficulty": 1,
            "chainwork": "000000000000000000000000000000000000000000000038a0a7fd0ac50337bf",
            "previousblockhash": "000000000000033eec293881db03baed2742243ea52ec04466983061af4e622f",
            "nextblockhash": "0000000015d462f7980d41f917ca04c7b673250ebf9088028a9b152da8133825"
    }
*/

}
